using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Content;

namespace Fated.Character {
    public static class ItemMngr {
        private static Dictionary<string, Item> data;
        public static void initialize(ContentManager cM) {
            data = cM.Load<Dictionary<string, Item>>("ItemList");
        }
        public static Item getItem(string name) {
            if (data.ContainsKey(name)) {
                return data[name].Clone();
            }
            throw new Exception("Item data " + name + "was not found.");
        }
    }
}
